@extends('Admin.layout.layout')
@section('title','轮播信息添加')
@section('content')

    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">轮播信息添加</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    @if (count($errors) > 0 )
        <div class="alert alert-danger">
        @foreach ($errors->all() as $error)
            <li>{{ $error }}</li>
        @endforeach
        </div>
    @endif
    <div class="row">
        <div class="col-lg-6 col-lg-offset-3">
            <form role="form" action="{{url('/admin/lunbo/insert')}}" method="post" enctype="multipart/form-data">
                <div class="form-group">
                    <label>轮播标题</label>
                    <input name="title" class="form-control" placeholder="轮播标题">
                </div>
                <div class="form-group">
                    <label>所属分类</label>
                    <select class="form-control" name="cid">
                            @foreach($cates as $k=>$v)
                            <option value="{{$v->id}}">{{$v->name}}</option>                                    
                            @endforeach
                    </select>
                </div>
                <div class="form-group">
                    <div style="position:relative;float:left">
                        <label>轮播图片</label>
                        <input type="file" name="pic">
                    </div>
                </div>
                <div style="clear:both"></div><br>
                <div class="form-group">
                    <label>状态</label>
                    <select class="form-control" name="status">
                        <option value="1">不显示</option>
                        <option value="2">显示</option>
                    </select>
                </div>
                {{ csrf_field() }}
                <button class="btn btn-primary btn-lg btn-block">提交</button>
            </form>
        </div>
    </div>
@endsection